package com.base.myproject.client.tools;


import java.util.HashMap;
import java.util.LinkedList;

import com.base.myproject.client.Connector.ConnectorObjectContainer;
import com.base.myproject.client.busi.AddItem;
import com.base.myproject.client.busi.BO.BaseObject;
import com.base.myproject.client.busi.BO.ModelDataList;
import com.base.myproject.client.busi.ClientEnv.SyncObjectContainer;
import com.base.myproject.client.busi.b2c.CcodeObject;
import com.base.myproject.client.busi.b2c.shopping.ShopCartObject;
import com.base.myproject.client.busi.service.Associator;
import com.base.myproject.client.busi.service.AssociatorX;
import com.base.myproject.client.busi.system.BcodeSync;
import com.base.myproject.client.busi.system.PrinterSync;
import com.base.myproject.client.jdbc.DataSet;
import com.base.myproject.client.jdbc.StoreInfo;
import com.base.myproject.client.ui.codenamemap.CodeNameMap;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
	String greetServer(String name);
	String[][] greetServerarr(String name);
	String greetServer(String[][] name,String type);
	String greetServerShoppingCart(java.util.LinkedList<ShopCartObject> ll,String ccode);
	String greetServerCcode(CcodeObject cco);
	LinkedList<  BaseObject> getBaseObject(String querysql,String classname);
	//String saveBaseObject(java.util.LinkedList< BaseObject> bolinklist,String method);
	String saveBaseObject(java.util.Vector<String> savevector,java.util.HashMap<String, String> params);
	
	Associator getAssociator(String ccode,int mode);
	AssociatorX getAssociatorx(String ccode,int mode);
	
	CodeNameMap getCodeNameMap(CodeNameMap cnm);

	String getbnamebyshortname(String	shortcode);
		   
	BcodeSync getBcode(String column,String value);
	
	DataSet getDataSet(String sql);
	
	String getPrinterHtml(PrinterSync printersync);
	
	ConnectorObjectContainer getConnectorObject();
	
	String getSyncObject(SyncObjectContainer so,int mode);
	
	Boolean checkhasBcode(String filter);
	
	Boolean checkhasCcode_scardno(String ccode,String password);
	
	CommandSyncReturnObject SendCommandSync(CommandSyncContainer comlist);
	
	CommandSyncReturnObject SendCommandSyncSingle(CommandSyncContainer comlist);
	
	ModelDataList getModelDataList(StoreInfo info,int mode);
	
	HashMap<String,String> getComet();
	/**
	 * 通过rpc的方式获得内码
	 * @param hm
	 * @return
	 */
	String getIcode(StoreInfo si,String columnname,String columnvalue);
	
	AddItem getIcodex(StoreInfo si,String columnname,String columnvalue);
	
	String UrlEncode(String str,String c,String enc);
	
	
}
